﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication2
{

    class Program
    {
        static void Main(string[] args)
        {
            //a与b比小的加10
            int a = 10;
            int b = 20;
            Console.WriteLine(+(a < b ? a + 10 : b + 10));


            //交换值
            int c = 100;
            int d = 200;
            c = c ^ d;
            d = c ^ d;
            c = c ^ d;
            Console.WriteLine("c=" + c + "d=" + d);

            //判断此数是否为偶数
            Console.WriteLine("请输入一个数字");
            int r= int.Parse(Console.ReadLine());
            if (r % 2 == 0)
            {
                Console.WriteLine(r + "是偶数");
            }
            else {
                Console.WriteLine(r + "不是偶数");
            }

            //判断学生考场教室
            Console.WriteLine("请输入准考证号后两位数");
            int num = int.Parse(Console.ReadLine());
            switch(num)
            {
                case 01:
                Console.WriteLine("一班");
                break;
                case 02:
                Console.WriteLine("二班");
                break;
                case 03:
                Console.WriteLine("三班");
                break;
                case 04:
                Console.WriteLine("四班");
                break;
                case 05:
                Console.WriteLine("五班");
                break;
                default:
               Console.WriteLine("六班");
                break;



            }

        }


    }

  
}